﻿@{
    ViewBag.Title = "Login";
    Layout = null;
}

<!DOCTYPE html>
<html>
<head>
    <title>美邦C2MSCM</title>
    <meta name="viewport" content="width=device-width" />
    <link href="~/Assets/global/Plugins/font-awesome/Css/font-awesome.min.css" rel="stylesheet" />
    <link href="~/Assets/login/css/bundle-home.css" rel="stylesheet" />
    <link href="~/Assets/login/css/bundle-home-ext.css" rel="stylesheet" />
    <script src="~/Assets/global/Plugins/jquery-1.10.1.min.js"></script>
    <script src="/Scripts/bundle/bundle-home.js"></script>
    <script src="~/Assets/global/Plugins/bootBox/bootbox.min.js"></script>

    <script type="text/javascript">
    function check() {
        var user = document.getElementById("txtMobile").value;
        var pwd = document.getElementById("txtPassword").value;
        if (user == "" || pwd == "") {
            //alert("账号或密码不能为空！");
            bootbox.alert({
                size: "small",
                animate: false,
                closeButton: false,
                className: "green-control",
                message: "账号或密码不能为空！"
            });
            return false;
        }
    }
    </script>
</head>
<body id="login" class="unloaded">
    <div class="wrapper">
        <header>
            <nav role="navigation" class="navbar navbar-default">
                <div class="container" style="text-align: left; float: left;">

                </div>
                <div class="container" style="text-align: right; float: right;color:#fff">
                    <span style="font-size: 26px; font-weight: bold">美邦C2MSCM</span>
                </div>
            </nav>
        </header>
        <div class="login">
            @using (Html.BeginForm("Login", "Home", FormMethod.Post, new { @class = "container offset1 loginform", onsubmit = "return check();" }))
            {
                <div class="pad">
                    <input name="_csrf" type="hidden"><div class="control-group">
                        <div class="controls">
                            <label for="uname" class="control-label fa fa-user"></label>
                            <input id="txtMobile" name="mobile" tabindex="1" class="form-control input-medium" type="text" autofocus="autofocus" >
                        </div>
                    </div>
                    @* <input name="_csrf" type="hidden"><div class="control-group">
                            <div class="controls">
                                <label for="uname" class="control-label fa fa-user"></label>
                                <input id="captcha" name="captcha" tabindex="1" class="form-control input-medium" type="text" autofocus="autofocus" value="@ViewData["mobile"]">
                                <button type="button" id="btnSendMsg" tabindex="4" class="btn btn-primary">发送验证码</button>
                            </div>
                        </div>*@
                    <div class="control-group">
                        <div class="controls">
                            <label for="password" class="control-label fa fa-lock"></label>
                            <input id="txtPassword" name="password" tabindex="2" class="form-control input-medium" type="password" >
                            @*<button type="button" id="btnRegister" tabindex="4" class="btn btn-primary">注册</button>*@
                        </div>
                    </div>
                </div>
                <div class="form-actions">
                    @*<a href="#" tabindex="5" class="btn pull-left btn-link text-muted">忘记密码?</a><a href="@Url.Content("/Account/Create")" tabindex="6" class="btn btn-link text-muted">注册</a>*@
                    @*<button type="button" id="btnLogin" tabindex="4" class="btn btn-primary">Pad登录</button>*@
                    <button type="submit" tabindex="4" class="btn btn-primary">登录</button>
                    <div style="color:red; font-size: 9px; text-align:center; background-color:#E4E4E4; padding: 5px; margin-top: 2px;">
                        <a href="../html/read_me.html" target="_blank">新用户须知</a>
                    </div>
                    <div style="color: #F00; font-size: 18px; text-align: left; background-color:#E4E4E4; padding: 5px; margin-top: 15px;">
                        @ViewBag.ErrMsg
                    </div>
                </div>
            }
        </div>
    </div>
</body>
</html>

